﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using Portal.Common.Entity;

namespace Portal.Common.Interface
{
    public interface ISystemLog
    {
        /// <summary>
        /// 获取多条系统日志信息
        /// </summary>
        /// <param name="where"></param>
        /// <param name="start"></param>
        /// <param name="limit"></param>
        /// <param name="count"></param>
        /// <returns></returns>
        IList GetList(string where, int start, int limit, out int count);

        /// <summary>
        /// 获取系统日志数目
        /// </summary>
        /// <param name="where"></param>
        /// <param name="count"></param>
        void GetSystemLogCount(string where, out int count);

        SystemLogEntity Get(string taskId);

        void Insert(SystemLogEntity entity);

        void Update(SystemLogEntity entity);

        bool Exists(string taskId);

        void Delete(string taskId);
    }
}
